
function handleAdd() {
    let username = zh.value;
    let name = xm.value;
    $.ajax({
        url: "/user/checkUser",
        data: {username, name},
        success(r){
            if (r == -1){
                alert("账号已存在！");
            }else {
                alert("添加成功！");
                location.href = "/";
            }
        }
    })
}
